package com.lanou.service;

import com.lanou.bean.Cost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by lanouhn on 17/10/21.
 */
public interface CostService {

   List<Cost> selectAllCostInfo();


   int insertCost(String name,String base_duration,String base_cost,String unit_cost,String descr);

   int deleteCostById(Integer cost_id);

   int deleteserviceById(Integer cost_id);

   List<Cost> selectAllCostAndSort();

   List<Cost> selectAllCostAndSortByCost();

   Cost selectByPrimaryKey(Integer cost_id);

   int updateCost(@Param("cost_id")Integer cost_id, @Param("name") String name, @Param("base_duration") String base_duration, @Param("base_cost") String base_cost, @Param("unit_cost") String unit_cost, @Param("descr") String descr);

   int updateCostStatus(@Param("cost_id")Integer cost_id,@Param("status")Integer status,@Param("startime")String startime);

   Cost selectCostByName(Integer cost_id);

}
